home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / PPCToolbox.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  23.1 KB  |  699 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        PPCToolbox.a
  3. ;
  4. ;    Contains:    Program-Program Communications Toolbox Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1989-1993, 1995-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__PPCTOOLBOX__') = 'UNDEFINED' THEN
  19. __PPCTOOLBOX__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__APPLETALK__') = 'UNDEFINED' THEN
  25.     include 'AppleTalk.a'
  26.     ENDIF
  27.  
  28. ; typedef unsigned char                 PPCServiceType
  29.  
  30.  
  31. ppcServiceRealTime                EQU        1
  32. ; typedef short                         PPCLocationKind
  33.  
  34.  
  35. ppcNoLocation                    EQU        0                    ; There is no PPCLocName 
  36. ppcNBPLocation                    EQU        1                    ; Use AppleTalk NBP      
  37. ppcNBPTypeLocation                EQU        2                    ; Used for specifying a location name type during PPCOpen only 
  38. ; typedef short                         PPCPortKinds
  39.  
  40.  
  41. ppcByCreatorAndType                EQU        1                    ; Port type is specified as colloquial Mac creator and type 
  42. ppcByString                        EQU        2                    ; Port type is in pascal string format 
  43. ;  Values returned for request field in PPCInform call 
  44. ; typedef unsigned char                 PPCSessionOrigin
  45.  
  46.  
  47.                                                             ; Values returned for requestType field in PPCInform call 
  48. ppcLocalOrigin                    EQU        1                    ; session originated from this machine 
  49. ppcRemoteOrigin                    EQU        2                    ; session originated from remote machine 
  50. ; typedef short                         PPCPortRefNum
  51.  
  52. ; typedef long                             PPCSessRefNum
  53.  
  54. PPCPortRec                RECORD 0
  55. nameScript                 ds.w    1                ; offset: $0 (0)        ;  script of name 
  56. name                     ds        Str32Field        ; offset: $2 (2)        ;  name of port as seen in browser 
  57. portKindSelector         ds.w    1                ; offset: $24 (36)        ;  which variant 
  58. portTypeStr                 ds        Str32            ; offset: $26 (38)        ;  pascal type string 
  59.                          ORG 38
  60. portCreator                 ds.l    1                ; offset: $26 (38)
  61. portType                 ds.l    1                ; offset: $2A (42)
  62.                          ORG 72
  63. sizeof                     EQU *                    ; size:   $48 (72)
  64.                         ENDR
  65. ; typedef struct PPCPortRec *            PPCPortPtr
  66.  
  67. LocationNameRec            RECORD 0
  68. locationKindSelector     ds.w    1                ; offset: $0 (0)        ;  which variant 
  69. nbpEntity                 ds        EntityName        ; offset: $2 (2)        ;  NBP name entity 
  70.                          ORG 2
  71. nbpType                     ds        Str32            ; offset: $2 (2)        ;  just the NBP type string, for PPCOpen 
  72.                          ORG 104
  73. sizeof                     EQU *                    ; size:   $68 (104)
  74.                         ENDR
  75. ; typedef struct LocationNameRec *        LocationNamePtr
  76.  
  77. PortInfoRec                RECORD 0
  78. filler1                     ds.b    1                ; offset: $0 (0)
  79. authRequired             ds.b    1                ; offset: $1 (1)
  80. name                     ds        PPCPortRec        ; offset: $2 (2)
  81. sizeof                     EQU *                    ; size:   $4A (74)
  82.                         ENDR
  83. ; typedef struct PortInfoRec *            PortInfoPtr
  84.  
  85. ; typedef struct PortInfoRec *            PortInfoArrayPtr
  86.  
  87.  
  88.  
  89. ; typedef PPCParamBlockRec *            PPCParamBlockPtr
  90.  
  91. PPCOpenPBRec            RECORD 0
  92. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  93. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  94. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  95. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  96. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  97. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  98. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  99. portRefNum                 ds.w    1                ; offset: $26 (38)        ;  38 <--   Port Reference 
  100. filler1                     ds.l    1                ; offset: $28 (40)
  101. serviceType                 ds.b    1                ; offset: $2C (44)        ;  44 -->    Bit field describing the requested port service 
  102. resFlag                     ds.b    1                ; offset: $2D (45)        ;  Must be set to 0 
  103. portName                 ds.l    1                ; offset: $2E (46)        ;  46 -->   PortName for PPC 
  104. locationName             ds.l    1                ; offset: $32 (50)        ;  50 -->   If NBP Registration is required 
  105. networkVisible             ds.b    1                ; offset: $36 (54)        ;  54 -->   make this network visible on network 
  106. nbpRegistered             ds.b    1                ; offset: $37 (55)        ;  55 <--   The given location name was registered on the network 
  107. sizeof                     EQU *                    ; size:   $38 (56)
  108.                         ENDR
  109. ; typedef struct PPCOpenPBRec *            PPCOpenPBPtr
  110.  
  111. PPCInformPBRec            RECORD 0
  112. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  113. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  114. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  115. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  116. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  117. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  118. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  119. portRefNum                 ds.w    1                ; offset: $26 (38)        ;  38 -->   Port Identifier 
  120. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 <--   Session Reference 
  121. serviceType                 ds.b    1                ; offset: $2C (44)        ;  44 <--   Status Flags for type of session, local, remote 
  122. autoAccept                 ds.b    1                ; offset: $2D (45)        ;  45 -->   if true session will be accepted automatically 
  123. portName                 ds.l    1                ; offset: $2E (46)        ;  46 -->   Buffer for Source PPCPortRec 
  124. locationName             ds.l    1                ; offset: $32 (50)        ;  50 -->   Buffer for Source LocationNameRec 
  125. userName                 ds.l    1                ; offset: $36 (54)        ;  54 -->   Buffer for Soure user's name trying to link. 
  126. userData                 ds.l    1                ; offset: $3A (58)        ;  58 <--   value included in PPCStart's userData 
  127. requestType                 ds.b    1                ; offset: $3E (62)        ;  62 <--   Local or Network 
  128. filler                     ds.b    1                ; offset: $3F (63)
  129. sizeof                     EQU *                    ; size:   $40 (64)
  130.                         ENDR
  131. ; typedef struct PPCInformPBRec *        PPCInformPBPtr
  132.  
  133. PPCStartPBRec            RECORD 0
  134. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  135. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  136. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  137. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  138. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  139. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  140. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  141. portRefNum                 ds.w    1                ; offset: $26 (38)        ;  38 -->   Port Identifier 
  142. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 <--   Session Reference 
  143. serviceType                 ds.b    1                ; offset: $2C (44)        ;  44 <--   Actual service method (realTime) 
  144. resFlag                     ds.b    1                ; offset: $2D (45)        ;  45 -->   Must be set to 0  
  145. portName                 ds.l    1                ; offset: $2E (46)        ;  46 -->   Destination portName 
  146. locationName             ds.l    1                ; offset: $32 (50)        ;  50 -->   NBP or NAS style service location name 
  147. rejectInfo                 ds.l    1                ; offset: $36 (54)        ;  54 <--   reason for rejecting the session request 
  148. userData                 ds.l    1                ; offset: $3A (58)        ;  58 -->   Copied to destination PPCInform parameter block 
  149. userRefNum                 ds.l    1                ; offset: $3E (62)        ;  62 -->   userRefNum (obtained during login process)  
  150. sizeof                     EQU *                    ; size:   $42 (66)
  151.                         ENDR
  152. ; typedef struct PPCStartPBRec *        PPCStartPBPtr
  153.  
  154. PPCAcceptPBRec            RECORD 0
  155. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  156. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  157. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  158. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  159. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  160. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  161. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  162. filler1                     ds.w    1                ; offset: $26 (38)
  163. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 -->   Session Reference 
  164. sizeof                     EQU *                    ; size:   $2C (44)
  165.                         ENDR
  166. ; typedef struct PPCAcceptPBRec *        PPCAcceptPBPtr
  167.  
  168. PPCRejectPBRec            RECORD 0
  169. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  170. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  171. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  172. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  173. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  174. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  175. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  176. filler1                     ds.w    1                ; offset: $26 (38)
  177. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 -->   Session Reference 
  178. filler2                     ds.w    1                ; offset: $2C (44)
  179. filler3                     ds.l    1                ; offset: $2E (46)
  180. filler4                     ds.l    1                ; offset: $32 (50)
  181. rejectInfo                 ds.l    1                ; offset: $36 (54)        ;  54 -->   reason for rejecting the session request  
  182. sizeof                     EQU *                    ; size:   $3A (58)
  183.                         ENDR
  184. ; typedef struct PPCRejectPBRec *        PPCRejectPBPtr
  185.  
  186. PPCWritePBRec            RECORD 0
  187. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  188. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  189. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  190. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  191. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  192. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  193. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  194. filler1                     ds.w    1                ; offset: $26 (38)
  195. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 -->   Session Reference 
  196. bufferLength             ds.l    1                ; offset: $2C (44)        ;  44 -->   Length of the message buffer 
  197. actualLength             ds.l    1                ; offset: $30 (48)        ;  48 <--   Actual Length Written 
  198. bufferPtr                 ds.l    1                ; offset: $34 (52)        ;  52 -->   Pointer to message buffer 
  199. more                     ds.b    1                ; offset: $38 (56)        ;  56 -->   if more data in this block will be written 
  200. filler2                     ds.b    1                ; offset: $39 (57)
  201. userData                 ds.l    1                ; offset: $3A (58)        ;  58 -->   Message block userData Uninterpreted by PPC 
  202. blockCreator             ds.l    1                ; offset: $3E (62)        ;  62 -->   Message block creator Uninterpreted by PPC 
  203. blockType                 ds.l    1                ; offset: $42 (66)        ;  66 -->   Message block type Uninterpreted by PPC 
  204. sizeof                     EQU *                    ; size:   $46 (70)
  205.                         ENDR
  206. ; typedef struct PPCWritePBRec *        PPCWritePBPtr
  207.  
  208. PPCReadPBRec            RECORD 0
  209. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  210. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  211. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  212. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  213. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  214. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  215. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  216. filler1                     ds.w    1                ; offset: $26 (38)
  217. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 -->   Session Reference 
  218. bufferLength             ds.l    1                ; offset: $2C (44)        ;  44 -->   Length of the message buffer 
  219. actualLength             ds.l    1                ; offset: $30 (48)        ;  48 <--   Actual length read 
  220. bufferPtr                 ds.l    1                ; offset: $34 (52)        ;  52 -->   Pointer to message buffer 
  221. more                     ds.b    1                ; offset: $38 (56)        ;  56 <--   if true more data in this block to be read 
  222. filler2                     ds.b    1                ; offset: $39 (57)
  223. userData                 ds.l    1                ; offset: $3A (58)        ;  58 <--   Message block userData Uninterpreted by PPC 
  224. blockCreator             ds.l    1                ; offset: $3E (62)        ;  62 <--   Message block creator Uninterpreted by PPC 
  225. blockType                 ds.l    1                ; offset: $42 (66)        ;  66 <--   Message block type Uninterpreted by PPC 
  226. sizeof                     EQU *                    ; size:   $46 (70)
  227.                         ENDR
  228. ; typedef struct PPCReadPBRec *            PPCReadPBPtr
  229.  
  230. PPCEndPBRec                RECORD 0
  231. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  232. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  233. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  234. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  235. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  236. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  237. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  238. filler1                     ds.w    1                ; offset: $26 (38)
  239. sessRefNum                 ds.l    1                ; offset: $28 (40)        ;  40 -->   Session Reference 
  240. sizeof                     EQU *                    ; size:   $2C (44)
  241.                         ENDR
  242. ; typedef struct PPCEndPBRec *            PPCEndPBPtr
  243.  
  244. PPCClosePBRec            RECORD 0
  245. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  246. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  247. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  248. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  249. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  250. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  251. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  252. portRefNum                 ds.w    1                ; offset: $26 (38)        ;  38 -->   Port Identifier 
  253. sizeof                     EQU *                    ; size:   $28 (40)
  254.                         ENDR
  255. ; typedef struct PPCClosePBRec *        PPCClosePBPtr
  256.  
  257. IPCListPortsPBRec        RECORD 0
  258. qLink                     ds.l    1                ; offset: $0 (0)        ;  PPC's Internal Use 
  259. csCode                     ds.w    1                ; offset: $4 (4)        ;  Requested PPC command 
  260. intUse                     ds.w    1                ; offset: $6 (6)        ;  Internal Use 
  261. intUsePtr                 ds.l    1                ; offset: $8 (8)        ;  Internal Use 
  262. ioCompletion             ds.l    1                ; offset: $C (12)        ;  12 -->    Completion Routine 
  263. ioResult                 ds.w    1                ; offset: $10 (16)        ;  16 <--     Command Result Code 
  264. Reserved                 ds.l    5                ; offset: $12 (18)        ;  Reserved for PPC, Don't use 
  265. filler1                     ds.w    1                ; offset: $26 (38)
  266. startIndex                 ds.w    1                ; offset: $28 (40)        ;  40 -->   Start Index 
  267. requestCount             ds.w    1                ; offset: $2A (42)        ;  42 -->   Number of entries to be returned 
  268. actualCount                 ds.w    1                ; offset: $2C (44)        ;  44 <--   Actual Number of entries to be returned 
  269. portName                 ds.l    1                ; offset: $2E (46)        ;  46 -->   PortName Match 
  270. locationName             ds.l    1                ; offset: $32 (50)        ;  50 -->   NBP or NAS type name to locate the Port Location 
  271. bufferPtr                 ds.l    1                ; offset: $36 (54)        ;  54 -->   Pointer to a buffer requestCount*sizeof(PortInfo) bytes big 
  272. sizeof                     EQU *                    ; size:   $3A (58)
  273.                         ENDR
  274. ; typedef struct IPCListPortsPBRec *    IPCListPortsPBPtr
  275.  
  276. PPCParamBlockRec        RECORD 0
  277. openParam                 ds        PPCOpenPBRec    ; offset: $0 (0)
  278.                          ORG 0
  279. informParam                 ds        PPCInformPBRec ; offset: $0 (0)
  280.                          ORG 0
  281. startParam                 ds        PPCStartPBRec    ; offset: $0 (0)
  282.                          ORG 0
  283. acceptParam                 ds        PPCAcceptPBRec ; offset: $0 (0)
  284.                          ORG 0
  285. rejectParam                 ds        PPCRejectPBRec ; offset: $0 (0)
  286.                          ORG 0
  287. writeParam                 ds        PPCWritePBRec    ; offset: $0 (0)
  288.                          ORG 0
  289. readParam                 ds        PPCReadPBRec    ; offset: $0 (0)
  290.                          ORG 0
  291. endParam                 ds        PPCEndPBRec        ; offset: $0 (0)
  292.                          ORG 0
  293. closeParam                 ds        PPCClosePBRec    ; offset: $0 (0)
  294.                          ORG 0
  295. listPortsParam             ds        IPCListPortsPBRec ; offset: $0 (0)
  296.                          ORG 70
  297. sizeof                     EQU *                    ; size:   $46 (70)
  298.                         ENDR
  299. ;   PPC Calling Conventions  
  300. ;
  301. ; pascal OSErr PPCInit(void )
  302. ;
  303.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  304.         ; returns:
  305.         ;    OSErr           <= D0
  306.         Macro
  307.         _PPCInit
  308.             moveq               #0,D0
  309.             dc.w                $A0DD
  310.         EndM
  311.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  312.         IMPORT_CFM_FUNCTION PPCInit
  313.     ENDIF
  314.  
  315.  
  316. ;
  317. ; pascal OSErr PPCOpenSync(PPCOpenPBPtr pb)
  318. ;
  319.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  320.         ; parameters:
  321.         ;    pb              => A0
  322.         ; returns:
  323.         ;    OSErr           <= D0
  324.         Macro
  325.         _PPCOpenSync
  326.             moveq               #1,D0
  327.             dc.w                $A0DD
  328.         EndM
  329.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  330.         IMPORT_CFM_FUNCTION PPCOpenSync
  331.     ENDIF
  332.  
  333. ;
  334. ; pascal OSErr PPCOpenAsync(PPCOpenPBPtr pb)
  335. ;
  336.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  337.         ; parameters:
  338.         ;    pb              => A0
  339.         ; returns:
  340.         ;    OSErr           <= D0
  341.         Macro
  342.         _PPCOpenAsync
  343.             moveq               #1,D0
  344.             dc.w                $A4DD
  345.         EndM
  346.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  347.         IMPORT_CFM_FUNCTION PPCOpenAsync
  348.     ENDIF
  349.  
  350. ;
  351. ; pascal OSErr PPCInformSync(PPCInformPBPtr pb)
  352. ;
  353.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  354.         ; parameters:
  355.         ;    pb              => A0
  356.         ; returns:
  357.         ;    OSErr           <= D0
  358.         Macro
  359.         _PPCInformSync
  360.             moveq               #3,D0
  361.             dc.w                $A0DD
  362.         EndM
  363.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  364.         IMPORT_CFM_FUNCTION PPCInformSync
  365.     ENDIF
  366.  
  367. ;
  368. ; pascal OSErr PPCInformAsync(PPCInformPBPtr pb)
  369. ;
  370.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  371.         ; parameters:
  372.         ;    pb              => A0
  373.         ; returns:
  374.         ;    OSErr           <= D0
  375.         Macro
  376.         _PPCInformAsync
  377.             moveq               #3,D0
  378.             dc.w                $A4DD
  379.         EndM
  380.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  381.         IMPORT_CFM_FUNCTION PPCInformAsync
  382.     ENDIF
  383.  
  384. ;
  385. ; pascal OSErr PPCStartSync(PPCStartPBPtr pb)
  386. ;
  387.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  388.         ; parameters:
  389.         ;    pb              => A0
  390.         ; returns:
  391.         ;    OSErr           <= D0
  392.         Macro
  393.         _PPCStartSync
  394.             moveq               #2,D0
  395.             dc.w                $A0DD
  396.         EndM
  397.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  398.         IMPORT_CFM_FUNCTION PPCStartSync
  399.     ENDIF
  400.  
  401. ;
  402. ; pascal OSErr PPCStartAsync(PPCStartPBPtr pb)
  403. ;
  404.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  405.         ; parameters:
  406.         ;    pb              => A0
  407.         ; returns:
  408.         ;    OSErr           <= D0
  409.         Macro
  410.         _PPCStartAsync
  411.             moveq               #2,D0
  412.             dc.w                $A4DD
  413.         EndM
  414.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  415.         IMPORT_CFM_FUNCTION PPCStartAsync
  416.     ENDIF
  417.  
  418. ;
  419. ; pascal OSErr PPCAcceptSync(PPCAcceptPBPtr pb)
  420. ;
  421.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  422.         ; parameters:
  423.         ;    pb              => A0
  424.         ; returns:
  425.         ;    OSErr           <= D0
  426.         Macro
  427.         _PPCAcceptSync
  428.             moveq               #4,D0
  429.             dc.w                $A0DD
  430.         EndM
  431.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  432.         IMPORT_CFM_FUNCTION PPCAcceptSync
  433.     ENDIF
  434.  
  435. ;
  436. ; pascal OSErr PPCAcceptAsync(PPCAcceptPBPtr pb)
  437. ;
  438.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  439.         ; parameters:
  440.         ;    pb              => A0
  441.         ; returns:
  442.         ;    OSErr           <= D0
  443.         Macro
  444.         _PPCAcceptAsync
  445.             moveq               #4,D0
  446.             dc.w                $A4DD
  447.         EndM
  448.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  449.         IMPORT_CFM_FUNCTION PPCAcceptAsync
  450.     ENDIF
  451.  
  452. ;
  453. ; pascal OSErr PPCRejectSync(PPCRejectPBPtr pb)
  454. ;
  455.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  456.         ; parameters:
  457.         ;    pb              => A0
  458.         ; returns:
  459.         ;    OSErr           <= D0
  460.         Macro
  461.         _PPCRejectSync
  462.             moveq               #5,D0
  463.             dc.w                $A0DD
  464.         EndM
  465.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  466.         IMPORT_CFM_FUNCTION PPCRejectSync
  467.     ENDIF
  468.  
  469. ;
  470. ; pascal OSErr PPCRejectAsync(PPCRejectPBPtr pb)
  471. ;
  472.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  473.         ; parameters:
  474.         ;    pb              => A0
  475.         ; returns:
  476.         ;    OSErr           <= D0
  477.         Macro
  478.         _PPCRejectAsync
  479.             moveq               #5,D0
  480.             dc.w                $A4DD
  481.         EndM
  482.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  483.         IMPORT_CFM_FUNCTION PPCRejectAsync
  484.     ENDIF
  485.  
  486. ;
  487. ; pascal OSErr PPCWriteSync(PPCWritePBPtr pb)
  488. ;
  489.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  490.         ; parameters:
  491.         ;    pb              => A0
  492.         ; returns:
  493.         ;    OSErr           <= D0
  494.         Macro
  495.         _PPCWriteSync
  496.             moveq               #6,D0
  497.             dc.w                $A0DD
  498.         EndM
  499.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  500.         IMPORT_CFM_FUNCTION PPCWriteSync
  501.     ENDIF
  502.  
  503. ;
  504. ; pascal OSErr PPCWriteAsync(PPCWritePBPtr pb)
  505. ;
  506.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  507.         ; parameters:
  508.         ;    pb              => A0
  509.         ; returns:
  510.         ;    OSErr           <= D0
  511.         Macro
  512.         _PPCWriteAsync
  513.             moveq               #6,D0
  514.             dc.w                $A4DD
  515.         EndM
  516.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  517.         IMPORT_CFM_FUNCTION PPCWriteAsync
  518.     ENDIF
  519.  
  520. ;
  521. ; pascal OSErr PPCReadSync(PPCReadPBPtr pb)
  522. ;
  523.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  524.         ; parameters:
  525.         ;    pb              => A0
  526.         ; returns:
  527.         ;    OSErr           <= D0
  528.         Macro
  529.         _PPCReadSync
  530.             moveq               #7,D0
  531.             dc.w                $A0DD
  532.         EndM
  533.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  534.         IMPORT_CFM_FUNCTION PPCReadSync
  535.     ENDIF
  536.  
  537. ;
  538. ; pascal OSErr PPCReadAsync(PPCReadPBPtr pb)
  539. ;
  540.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  541.         ; parameters:
  542.         ;    pb              => A0
  543.         ; returns:
  544.         ;    OSErr           <= D0
  545.         Macro
  546.         _PPCReadAsync
  547.             moveq               #7,D0
  548.             dc.w                $A4DD
  549.         EndM
  550.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  551.         IMPORT_CFM_FUNCTION PPCReadAsync
  552.     ENDIF
  553.  
  554. ;
  555. ; pascal OSErr PPCEndSync(PPCEndPBPtr pb)
  556. ;
  557.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  558.         ; parameters:
  559.         ;    pb              => A0
  560.         ; returns:
  561.         ;    OSErr           <= D0
  562.         Macro
  563.         _PPCEndSync
  564.             moveq               #8,D0
  565.             dc.w                $A0DD
  566.         EndM
  567.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  568.         IMPORT_CFM_FUNCTION PPCEndSync
  569.     ENDIF
  570.  
  571. ;
  572. ; pascal OSErr PPCEndAsync(PPCEndPBPtr pb)
  573. ;
  574.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  575.         ; parameters:
  576.         ;    pb              => A0
  577.         ; returns:
  578.         ;    OSErr           <= D0
  579.         Macro
  580.         _PPCEndAsync
  581.             moveq               #8,D0
  582.             dc.w                $A4DD
  583.         EndM
  584.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  585.         IMPORT_CFM_FUNCTION PPCEndAsync
  586.     ENDIF
  587.  
  588. ;
  589. ; pascal OSErr PPCCloseSync(PPCClosePBPtr pb)
  590. ;
  591.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  592.         ; parameters:
  593.         ;    pb              => A0
  594.         ; returns:
  595.         ;    OSErr           <= D0
  596.         Macro
  597.         _PPCCloseSync
  598.             moveq               #9,D0
  599.             dc.w                $A0DD
  600.         EndM
  601.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  602.         IMPORT_CFM_FUNCTION PPCCloseSync
  603.     ENDIF
  604.  
  605. ;
  606. ; pascal OSErr PPCCloseAsync(PPCClosePBPtr pb)
  607. ;
  608.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  609.         ; parameters:
  610.         ;    pb              => A0
  611.         ; returns:
  612.         ;    OSErr           <= D0
  613.         Macro
  614.         _PPCCloseAsync
  615.             moveq               #9,D0
  616.             dc.w                $A4DD
  617.         EndM
  618.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  619.         IMPORT_CFM_FUNCTION PPCCloseAsync
  620.     ENDIF
  621.  
  622. ;
  623. ; pascal OSErr IPCListPortsSync(IPCListPortsPBPtr pb)
  624. ;
  625.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  626.         ; parameters:
  627.         ;    pb              => A0
  628.         ; returns:
  629.         ;    OSErr           <= D0
  630.         Macro
  631.         _IPCListPortsSync
  632.             moveq               #10,D0
  633.             dc.w                $A0DD
  634.         EndM
  635.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  636.         IMPORT_CFM_FUNCTION IPCListPortsSync
  637.     ENDIF
  638.  
  639. ;
  640. ; pascal OSErr IPCListPortsAsync(IPCListPortsPBPtr pb)
  641. ;
  642.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  643.         ; parameters:
  644.         ;    pb              => A0
  645.         ; returns:
  646.         ;    OSErr           <= D0
  647.         Macro
  648.         _IPCListPortsAsync
  649.             moveq               #10,D0
  650.             dc.w                $A4DD
  651.         EndM
  652.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  653.         IMPORT_CFM_FUNCTION IPCListPortsAsync
  654.     ENDIF
  655.  
  656. ;
  657. ; pascal OSErr DeleteUserIdentity(unsigned long userRef)
  658. ;
  659.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  660.         IMPORT_CFM_FUNCTION DeleteUserIdentity
  661.     ENDIF
  662.  
  663. ;
  664. ; pascal OSErr GetDefaultUser(unsigned long *userRef, Str32 userName)
  665. ;
  666.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  667.         IMPORT_CFM_FUNCTION GetDefaultUser
  668.     ENDIF
  669.  
  670. ;
  671. ; pascal OSErr StartSecureSession(PPCStartPBPtr pb, Str32 userName, Boolean useDefault, Boolean allowGuest, Boolean *guestSelected, ConstStr255Param prompt)
  672. ;
  673.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  674.         IMPORT_CFM_FUNCTION StartSecureSession
  675.     ENDIF
  676.  
  677. ;
  678. ; pascal OSErr PPCBrowser(ConstStr255Param prompt, ConstStr255Param applListLabel, Boolean defaultSpecified, LocationNameRec *theLocation, PortInfoRec *thePortInfo, PPCFilterUPP portFilter, ConstStr32Param theLocNBPType)
  679. ;
  680.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  681.         Macro
  682.         _PPCBrowser
  683.             move.w              #$0D00,D0
  684.             dc.w                $A82B
  685.         EndM
  686.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  687.         IMPORT_CFM_FUNCTION PPCBrowser
  688.     ENDIF
  689.  
  690.  
  691. ;  The ParamBlock calls with the "Sync" or "Async" suffix are being phased out.
  692. ;
  693.  
  694.  
  695.  
  696.     ENDIF ; __PPCTOOLBOX__ 
  697.  
  698.